.class public Lorg/zeam/DeleteZone;
.super Landroid/widget/ImageView;
.source "DeleteZone.java"

# interfaces
.implements Lorg/zeam/DropTarget;
.implements Lorg/zeam/DragController$DragListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lorg/zeam/DeleteZone$FastAnimationSet;,
        Lorg/zeam/DeleteZone$FastTranslateAnimation;
    }
.end annotation


# static fields
.field private static final ANIMATION_DURATION:I = 0xc8

.field private static final ORIENTATION_HORIZONTAL:I = 0x1

.field private static final TRANSITION_DURATION:I = 0xfa


# instance fields
.field private mCustomPadding:I

.field private mDragLayer:Lorg/zeam/DragLayer;

.field private mHandle:Landroid/view/View;

.field private mHandleInAnimation:Landroid/view/animation/Animation;

.field private mHandleOutAnimation:Landroid/view/animation/Animation;

.field private mHandler:Landroid/os/Handler;

.field private mInAnimation:Landroid/view/animation/AnimationSet;

.field private mLauncher:Lorg/zeam/Launcher;

.field private final mLocation:[I

.field private mOrientation:I

.field private mOutAnimation:Landroid/view/animation/AnimationSet;

.field private final mRegion:Landroid/graphics/RectF;

.field private mShowUninstaller:Ljava/lang/Runnable;

.field private mTransition:Landroid/graphics/drawable/TransitionDrawable;

.field private mTrashMode:Z

.field private mTrickyLocation:Z

.field private mUninstallApplicationItemInfo:Lorg/zeam/ApplicationItemInfo;

.field private mUninstallTarget:Z

.field private shouldUninstall:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 2
    .parameter "context"

    .prologue
    const/4 v1, 0x0

    .line 66
    invoke-direct {p0, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    .line 42
    const/4 v0, 0x2

    new-array v0, v0, [I

    iput-object v0, p0, Lorg/zeam/DeleteZone;->mLocation:[I

    .line 43
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lorg/zeam/DeleteZone;->mHandler:Landroid/os/Handler;

    .line 49
    const/16 v0, 0x3c

    iput v0, p0, Lorg/zeam/DeleteZone;->mCustomPadding:I

    .line 58
    new-instance v0, Landroid/graphics/RectF;

    invoke-direct {v0}, Landroid/graphics/RectF;-><init>()V

    iput-object v0, p0, Lorg/zeam/DeleteZone;->mRegion:Landroid/graphics/RectF;

    .line 61
    iput-boolean v1, p0, Lorg/zeam/DeleteZone;->shouldUninstall:Z

    .line 62
    iput-boolean v1, p0, Lorg/zeam/DeleteZone;->mUninstallTarget:Z

    .line 63
    iput-boolean v1, p0, Lorg/zeam/DeleteZone;->mTrickyLocation:Z

    .line 348
    new-instance v0, Lorg/zeam/DeleteZone$1;

    invoke-direct {v0, p0}, Lorg/zeam/DeleteZone$1;-><init>(Lorg/zeam/DeleteZone;)V

    iput-object v0, p0, Lorg/zeam/DeleteZone;->mShowUninstaller:Ljava/lang/Runnable;

    .line 67
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1
    .parameter "context"
    .parameter "attrs"

    .prologue
    .line 70
    const/4 v0, 0x0

    invoke-direct {p0, p1, p2, v0}, Lorg/zeam/DeleteZone;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 71
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 3
    .parameter "context"
    .parameter "attrs"
    .parameter "defStyle"

    .prologue
    const/4 v2, 0x0

    .line 74
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 42
    const/4 v1, 0x2

    new-array v1, v1, [I

    iput-object v1, p0, Lorg/zeam/DeleteZone;->mLocation:[I

    .line 43
    new-instance v1, Landroid/os/Handler;

    invoke-direct {v1}, Landroid/os/Handler;-><init>()V

    iput-object v1, p0, Lorg/zeam/DeleteZone;->mHandler:Landroid/os/Handler;

    .line 49
    const/16 v1, 0x3c

    iput v1, p0, Lorg/zeam/DeleteZone;->mCustomPadding:I

    .line 58
    new-instance v1, Landroid/graphics/RectF;

    invoke-direct {v1}, Landroid/graphics/RectF;-><init>()V

    iput-object v1, p0, Lorg/zeam/DeleteZone;->mRegion:Landroid/graphics/RectF;

    .line 61
    iput-boolean v2, p0, Lorg/zeam/DeleteZone;->shouldUninstall:Z

    .line 62
    iput-boolean v2, p0, Lorg/zeam/DeleteZone;->mUninstallTarget:Z

    .line 63
    iput-boolean v2, p0, Lorg/zeam/DeleteZone;->mTrickyLocation:Z

    .line 348
    new-instance v1, Lorg/zeam/DeleteZone$1;

    invoke-direct {v1, p0}, Lorg/zeam/DeleteZone$1;-><init>(Lorg/zeam/DeleteZone;)V

    iput-object v1, p0, Lorg/zeam/DeleteZone;->mShowUninstaller:Ljava/lang/Runnable;

    .line 76
    sget-object v1, Lorg/zeam/R$styleable;->DeleteZone:[I

    invoke-virtual {p1, p2, v1, p3, v2}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;

    move-result-object v0

    .line 77
    .local v0, a:Landroid/content/res/TypedArray;
    const/4 v1, 0x1

    invoke-virtual {v0, v2, v1}, Landroid/content/res/TypedArray;->getInt(II)I

    move-result v1

    iput v1, p0, Lorg/zeam/DeleteZone;->mOrientation:I

    .line 78
    invoke-virtual {v0}, Landroid/content/res/TypedArray;->recycle()V

    .line 79
    return-void
.end method

.method static synthetic access$0(Lorg/zeam/DeleteZone;)Z
    .locals 1
    .parameter

    .prologue
    .line 62
    iget-boolean v0, p0, Lorg/zeam/DeleteZone;->mUninstallTarget:Z

    return v0
.end method

.method static synthetic access$1(Lorg/zeam/DeleteZone;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 61
    iput-boolean p1, p0, Lorg/zeam/DeleteZone;->shouldUninstall:Z

    return-void
.end method

.method static synthetic access$2(Lorg/zeam/DeleteZone;)Z
    .locals 1
    .parameter

    .prologue
    .line 61
    iget-boolean v0, p0, Lorg/zeam/DeleteZone;->shouldUninstall:Z

    return v0
.end method

.method private createAnimations()V
    .locals 10

    .prologue
    .line 230
    iget-object v0, p0, Lorg/zeam/DeleteZone;->mInAnimation:Landroid/view/animation/AnimationSet;

    if-nez v0, :cond_0

    .line 232
    new-instance v0, Lorg/zeam/DeleteZone$FastAnimationSet;

    invoke-direct {v0}, Lorg/zeam/DeleteZone$FastAnimationSet;-><init>()V

    iput-object v0, p0, Lorg/zeam/DeleteZone;->mInAnimation:Landroid/view/animation/AnimationSet;

    .line 233
    iget-object v9, p0, Lorg/zeam/DeleteZone;->mInAnimation:Landroid/view/animation/AnimationSet;

    .line 234
    .local v9, animationSet:Landroid/view/animation/AnimationSet;
    new-instance v0, Landroid/view/animation/AccelerateInterpolator;

    invoke-direct {v0}, Landroid/view/animation/AccelerateInterpolator;-><init>()V

    invoke-virtual {v9, v0}, Landroid/view/animation/AnimationSet;->setInterpolator(Landroid/view/animation/Interpolator;)V

    .line 235
    new-instance v0, Landroid/view/animation/AlphaAnimation;

    const/4 v1, 0x0

    const/high16 v2, 0x3f80

    invoke-direct {v0, v1, v2}, Landroid/view/animation/AlphaAnimation;-><init>(FF)V

    invoke-virtual {v9, v0}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    .line 237
    iget v0, p0, Lorg/zeam/DeleteZone;->mOrientation:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_4

    .line 238
    new-instance v0, Landroid/view/animation/TranslateAnimation;

    const/4 v1, 0x0

    const/4 v2, 0x0

    const/4 v3, 0x0

    .line 239
    const/4 v4, 0x0

    const/4 v5, 0x1

    const/high16 v6, 0x3f80

    const/4 v7, 0x1

    const/4 v8, 0x0

    invoke-direct/range {v0 .. v8}, Landroid/view/animation/TranslateAnimation;-><init>(IFIFIFIF)V

    .line 238
    invoke-virtual {v9, v0}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    .line 246
    :goto_0
    const-wide/16 v0, 0xc8

    invoke-virtual {v9, v0, v1}, Landroid/view/animation/AnimationSet;->setDuration(J)V

    .line 248
    .end local v9           #animationSet:Landroid/view/animation/AnimationSet;
    :cond_0
    iget-object v0, p0, Lorg/zeam/DeleteZone;->mHandleInAnimation:Landroid/view/animation/Animation;

    if-nez v0, :cond_1

    .line 250
    iget v0, p0, Lorg/zeam/DeleteZone;->mOrientation:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_5

    .line 251
    new-instance v0, Landroid/view/animation/TranslateAnimation;

    const/4 v1, 0x0

    const/4 v2, 0x0

    const/4 v3, 0x0

    const/4 v4, 0x0

    .line 252
    const/4 v5, 0x1

    const/high16 v6, 0x3f80

    const/4 v7, 0x1

    const/4 v8, 0x0

    invoke-direct/range {v0 .. v8}, Landroid/view/animation/TranslateAnimation;-><init>(IFIFIFIF)V

    .line 251
    iput-object v0, p0, Lorg/zeam/DeleteZone;->mHandleInAnimation:Landroid/view/animation/Animation;

    .line 259
    :goto_1
    iget-object v0, p0, Lorg/zeam/DeleteZone;->mHandleInAnimation:Landroid/view/animation/Animation;

    const-wide/16 v1, 0xc8

    invoke-virtual {v0, v1, v2}, Landroid/view/animation/Animation;->setDuration(J)V

    .line 261
    :cond_1
    iget-object v0, p0, Lorg/zeam/DeleteZone;->mOutAnimation:Landroid/view/animation/AnimationSet;

    if-nez v0, :cond_2

    .line 263
    new-instance v0, Lorg/zeam/DeleteZone$FastAnimationSet;

    invoke-direct {v0}, Lorg/zeam/DeleteZone$FastAnimationSet;-><init>()V

    iput-object v0, p0, Lorg/zeam/DeleteZone;->mOutAnimation:Landroid/view/animation/AnimationSet;

    .line 264
    iget-object v9, p0, Lorg/zeam/DeleteZone;->mOutAnimation:Landroid/view/animation/AnimationSet;

    .line 265
    .restart local v9       #animationSet:Landroid/view/animation/AnimationSet;
    new-instance v0, Landroid/view/animation/AccelerateInterpolator;

    invoke-direct {v0}, Landroid/view/animation/AccelerateInterpolator;-><init>()V

    invoke-virtual {v9, v0}, Landroid/view/animation/AnimationSet;->setInterpolator(Landroid/view/animation/Interpolator;)V

    .line 266
    new-instance v0, Landroid/view/animation/AlphaAnimation;

    const/high16 v1, 0x3f80

    const/4 v2, 0x0

    invoke-direct {v0, v1, v2}, Landroid/view/animation/AlphaAnimation;-><init>(FF)V

    invoke-virtual {v9, v0}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    .line 268
    iget v0, p0, Lorg/zeam/DeleteZone;->mOrientation:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_6

    .line 269
    new-instance v0, Lorg/zeam/DeleteZone$FastTranslateAnimation;

    const/4 v1, 0x0

    const/4 v2, 0x0

    const/4 v3, 0x0

    .line 270
    const/4 v4, 0x0

    const/4 v5, 0x1

    const/4 v6, 0x0

    const/4 v7, 0x1

    const/high16 v8, 0x3f80

    invoke-direct/range {v0 .. v8}, Lorg/zeam/DeleteZone$FastTranslateAnimation;-><init>(IFIFIFIF)V

    .line 269
    invoke-virtual {v9, v0}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    .line 277
    :goto_2
    const-wide/16 v0, 0xc8

    invoke-virtual {v9, v0, v1}, Landroid/view/animation/AnimationSet;->setDuration(J)V

    .line 279
    .end local v9           #animationSet:Landroid/view/animation/AnimationSet;
    :cond_2
    iget-object v0, p0, Lorg/zeam/DeleteZone;->mHandleOutAnimation:Landroid/view/animation/Animation;

    if-nez v0, :cond_3

    .line 280
    iget v0, p0, Lorg/zeam/DeleteZone;->mOrientation:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_7

    .line 281
    new-instance v0, Lorg/zeam/DeleteZone$FastTranslateAnimation;

    const/4 v1, 0x0

    const/4 v2, 0x0

    const/4 v3, 0x0

    .line 282
    const/4 v4, 0x0

    const/4 v5, 0x1

    const/4 v6, 0x0

    const/4 v7, 0x1

    const/high16 v8, 0x3f80

    invoke-direct/range {v0 .. v8}, Lorg/zeam/DeleteZone$FastTranslateAnimation;-><init>(IFIFIFIF)V

    .line 281
    iput-object v0, p0, Lorg/zeam/DeleteZone;->mHandleOutAnimation:Landroid/view/animation/Animation;

    .line 289
    :goto_3
    iget-object v0, p0, Lorg/zeam/DeleteZone;->mHandleOutAnimation:Landroid/view/animation/Animation;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/view/animation/Animation;->setFillAfter(Z)V

    .line 290
    iget-object v0, p0, Lorg/zeam/DeleteZone;->mHandleOutAnimation:Landroid/view/animation/Animation;

    const-wide/16 v1, 0xc8

    invoke-virtual {v0, v1, v2}, Landroid/view/animation/Animation;->setDuration(J)V

    .line 292
    :cond_3
    return-void

    .line 242
    .restart local v9       #animationSet:Landroid/view/animation/AnimationSet;
    :cond_4
    new-instance v0, Landroid/view/animation/TranslateAnimation;

    const/4 v1, 0x1

    const/high16 v2, 0x3f80

    .line 243
    const/4 v3, 0x1

    const/4 v4, 0x0

    const/4 v5, 0x0

    const/4 v6, 0x0

    const/4 v7, 0x0

    const/4 v8, 0x0

    invoke-direct/range {v0 .. v8}, Landroid/view/animation/TranslateAnimation;-><init>(IFIFIFIF)V

    .line 242
    invoke-virtual {v9, v0}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    goto/16 :goto_0

    .line 255
    .end local v9           #animationSet:Landroid/view/animation/AnimationSet;
    :cond_5
    new-instance v0, Landroid/view/animation/TranslateAnimation;

    const/4 v1, 0x1

    const/high16 v2, 0x3f80

    .line 256
    const/4 v3, 0x1

    const/4 v4, 0x0

    const/4 v5, 0x0

    const/4 v6, 0x0

    const/4 v7, 0x0

    const/4 v8, 0x0

    invoke-direct/range {v0 .. v8}, Landroid/view/animation/TranslateAnimation;-><init>(IFIFIFIF)V

    .line 255
    iput-object v0, p0, Lorg/zeam/DeleteZone;->mHandleInAnimation:Landroid/view/animation/Animation;

    goto/16 :goto_1

    .line 273
    .restart local v9       #animationSet:Landroid/view/animation/AnimationSet;
    :cond_6
    new-instance v0, Lorg/zeam/DeleteZone$FastTranslateAnimation;

    const/4 v1, 0x1

    const/4 v2, 0x0

    .line 274
    const/4 v3, 0x1

    const/high16 v4, 0x3f80

    const/4 v5, 0x0

    const/4 v6, 0x0

    const/4 v7, 0x0

    const/4 v8, 0x0

    invoke-direct/range {v0 .. v8}, Lorg/zeam/DeleteZone$FastTranslateAnimation;-><init>(IFIFIFIF)V

    .line 273
    invoke-virtual {v9, v0}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    goto :goto_2

    .line 285
    .end local v9           #animationSet:Landroid/view/animation/AnimationSet;
    :cond_7
    new-instance v0, Lorg/zeam/DeleteZone$FastTranslateAnimation;

    const/4 v1, 0x1

    const/4 v2, 0x0

    .line 286
    const/4 v3, 0x1

    const/high16 v4, 0x3f80

    const/4 v5, 0x0

    const/4 v6, 0x0

    const/4 v7, 0x0

    const/4 v8, 0x0

    invoke-direct/range {v0 .. v8}, Lorg/zeam/DeleteZone$FastTranslateAnimation;-><init>(IFIFIFIF)V

    .line 285
    iput-object v0, p0, Lorg/zeam/DeleteZone;->mHandleOutAnimation:Landroid/view/animation/Animation;

    goto :goto_3
.end method


# virtual methods
.method public acceptDrop(Lorg/zeam/DragSource;IIIILjava/lang/Object;)Z
    .locals 1
    .parameter "source"
    .parameter "x"
    .parameter "y"
    .parameter "xOffset"
    .parameter "yOffset"
    .parameter "dragInfo"

    .prologue
    .line 86
    const/4 v0, 0x1

    return v0
.end method

.method public estimateDropLocation(Lorg/zeam/DragSource;IIIILjava/lang/Object;Landroid/graphics/Rect;)Landroid/graphics/Rect;
    .locals 1
    .parameter "source"
    .parameter "x"
    .parameter "y"
    .parameter "xOffset"
    .parameter "yOffset"
    .parameter "dragInfo"
    .parameter "recycle"

    .prologue
    .line 95
    const/4 v0, 0x0

    return-object v0
.end method

.method public onDragEnd()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 215
    iget-boolean v0, p0, Lorg/zeam/DeleteZone;->mTrashMode:Z

    if-eqz v0, :cond_0

    .line 216
    const/4 v0, 0x0

    iput-boolean v0, p0, Lorg/zeam/DeleteZone;->mTrashMode:Z

    .line 217
    iget-object v0, p0, Lorg/zeam/DeleteZone;->mDragLayer:Lorg/zeam/DragLayer;

    invoke-virtual {v0, v2}, Lorg/zeam/DragLayer;->setDeleteRegion(Landroid/graphics/RectF;)V

    .line 218
    iget-object v0, p0, Lorg/zeam/DeleteZone;->mOutAnimation:Landroid/view/animation/AnimationSet;

    invoke-virtual {p0, v0}, Lorg/zeam/DeleteZone;->startAnimation(Landroid/view/animation/Animation;)V

    .line 219
    iget-object v0, p0, Lorg/zeam/DeleteZone;->mHandle:Landroid/view/View;

    iget-object v1, p0, Lorg/zeam/DeleteZone;->mHandleInAnimation:Landroid/view/animation/Animation;

    invoke-virtual {v0, v1}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V

    .line 220
    const/16 v0, 0x8

    invoke-virtual {p0, v0}, Lorg/zeam/DeleteZone;->setVisibility(I)V

    .line 222
    :cond_0
    iget-boolean v0, p0, Lorg/zeam/DeleteZone;->shouldUninstall:Z

    if-eqz v0, :cond_1

    iget-object v0, p0, Lorg/zeam/DeleteZone;->mUninstallApplicationItemInfo:Lorg/zeam/ApplicationItemInfo;

    if-eqz v0, :cond_1

    .line 223
    iget-object v0, p0, Lorg/zeam/DeleteZone;->mLauncher:Lorg/zeam/Launcher;

    iget-object v1, p0, Lorg/zeam/DeleteZone;->mUninstallApplicationItemInfo:Lorg/zeam/ApplicationItemInfo;

    invoke-virtual {v0, v1}, Lorg/zeam/Launcher;->uninstallApplication(Lorg/zeam/ApplicationItemInfo;)V

    .line 224
    iput-object v2, p0, Lorg/zeam/DeleteZone;->mUninstallApplicationItemInfo:Lorg/zeam/ApplicationItemInfo;

    .line 226
    :cond_1
    return-void
.end method

.method public onDragEnter(Lorg/zeam/DragSource;IIIILjava/lang/Object;)V
    .locals 6
    .parameter "source"
    .parameter "x"
    .parameter "y"
    .parameter "xOffset"
    .parameter "yOffset"
    .parameter "dragInfo"

    .prologue
    .line 148
    move-object v0, p6

    check-cast v0, Lorg/zeam/ItemInfo;

    move-object v1, v0

    .line 149
    .local v1, item:Lorg/zeam/ItemInfo;
    instance-of v2, v1, Lorg/zeam/ApplicationItemInfo;

    if-eqz v2, :cond_0

    .line 150
    iget-object v2, p0, Lorg/zeam/DeleteZone;->mTransition:Landroid/graphics/drawable/TransitionDrawable;

    const/16 v3, 0xfa

    invoke-virtual {v2, v3}, Landroid/graphics/drawable/TransitionDrawable;->reverseTransition(I)V

    .line 151
    const/4 v2, 0x1

    iput-boolean v2, p0, Lorg/zeam/DeleteZone;->mUninstallTarget:Z

    .line 152
    iget-object v2, p0, Lorg/zeam/DeleteZone;->mHandler:Landroid/os/Handler;

    iget-object v3, p0, Lorg/zeam/DeleteZone;->mShowUninstaller:Ljava/lang/Runnable;

    invoke-virtual {v2, v3}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 153
    iget-object v2, p0, Lorg/zeam/DeleteZone;->mHandler:Landroid/os/Handler;

    iget-object v3, p0, Lorg/zeam/DeleteZone;->mShowUninstaller:Ljava/lang/Runnable;

    const-wide/16 v4, 0x3e8

    invoke-virtual {v2, v3, v4, v5}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 155
    :cond_0
    return-void
.end method

.method public onDragExit(Lorg/zeam/DragSource;IIIILjava/lang/Object;)V
    .locals 4
    .parameter "source"
    .parameter "x"
    .parameter "y"
    .parameter "xOffset"
    .parameter "yOffset"
    .parameter "dragInfo"

    .prologue
    .line 166
    iget-object v0, p0, Lorg/zeam/DeleteZone;->mTransition:Landroid/graphics/drawable/TransitionDrawable;

    const/16 v1, 0xfa

    invoke-virtual {v0, v1}, Landroid/graphics/drawable/TransitionDrawable;->reverseTransition(I)V

    .line 167
    iget-object v0, p0, Lorg/zeam/DeleteZone;->mHandler:Landroid/os/Handler;

    iget-object v1, p0, Lorg/zeam/DeleteZone;->mShowUninstaller:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 168
    iget-boolean v0, p0, Lorg/zeam/DeleteZone;->shouldUninstall:Z

    if-eqz v0, :cond_0

    .line 169
    const/4 v0, 0x0

    iput-boolean v0, p0, Lorg/zeam/DeleteZone;->mUninstallTarget:Z

    .line 170
    iget-object v0, p0, Lorg/zeam/DeleteZone;->mHandler:Landroid/os/Handler;

    iget-object v1, p0, Lorg/zeam/DeleteZone;->mShowUninstaller:Ljava/lang/Runnable;

    const-wide/16 v2, 0x64

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 172
    :cond_0
    return-void
.end method

.method public onDragOver(Lorg/zeam/DragSource;IIIILjava/lang/Object;)V
    .locals 0
    .parameter "source"
    .parameter "x"
    .parameter "y"
    .parameter "xOffset"
    .parameter "yOffset"
    .parameter "dragInfo"

    .prologue
    .line 158
    return-void
.end method

.method public onDragStart(Landroid/view/View;Lorg/zeam/DragSource;Ljava/lang/Object;I)V
    .locals 10
    .parameter "view"
    .parameter "source"
    .parameter "info"
    .parameter "dragAction"

    .prologue
    const/4 v9, 0x0

    const/4 v8, 0x1

    .line 176
    move-object v0, p3

    check-cast v0, Lorg/zeam/ItemInfo;

    move-object v1, v0

    .line 177
    .local v1, item:Lorg/zeam/ItemInfo;
    iput v8, p0, Lorg/zeam/DeleteZone;->mCustomPadding:I

    .line 178
    if-eqz v1, :cond_0

    .line 180
    iput-boolean v8, p0, Lorg/zeam/DeleteZone;->mTrashMode:Z

    .line 181
    invoke-direct {p0}, Lorg/zeam/DeleteZone;->createAnimations()V

    .line 182
    iget-object v2, p0, Lorg/zeam/DeleteZone;->mLocation:[I

    .line 183
    .local v2, location:[I
    invoke-virtual {p0, v2}, Lorg/zeam/DeleteZone;->getLocationOnScreen([I)V

    .line 185
    iget-boolean v3, p0, Lorg/zeam/DeleteZone;->mTrickyLocation:Z

    if-eqz v3, :cond_2

    .line 186
    iget v3, p0, Lorg/zeam/DeleteZone;->mOrientation:I

    if-ne v3, v8, :cond_1

    .line 187
    iget-object v3, p0, Lorg/zeam/DeleteZone;->mRegion:Landroid/graphics/RectF;

    aget v4, v2, v9

    int-to-float v4, v4

    aget v5, v2, v8

    iget v6, p0, Lorg/zeam/DeleteZone;->mCustomPadding:I

    add-int/2addr v5, v6

    int-to-float v5, v5

    aget v6, v2, v9

    invoke-virtual {p0}, Lorg/zeam/DeleteZone;->getRight()I

    move-result v7

    add-int/2addr v6, v7

    invoke-virtual {p0}, Lorg/zeam/DeleteZone;->getLeft()I

    move-result v7

    sub-int/2addr v6, v7

    int-to-float v6, v6

    .line 188
    aget v7, v2, v8

    invoke-virtual {p0}, Lorg/zeam/DeleteZone;->getBottom()I

    move-result v8

    add-int/2addr v7, v8

    invoke-virtual {p0}, Lorg/zeam/DeleteZone;->getTop()I

    move-result v8

    sub-int/2addr v7, v8

    iget v8, p0, Lorg/zeam/DeleteZone;->mCustomPadding:I

    add-int/2addr v7, v8

    int-to-float v7, v7

    .line 187
    invoke-virtual {v3, v4, v5, v6, v7}, Landroid/graphics/RectF;->set(FFFF)V

    .line 194
    :goto_0
    iput-boolean v9, p0, Lorg/zeam/DeleteZone;->mTrickyLocation:Z

    .line 200
    :goto_1
    iget-object v3, p0, Lorg/zeam/DeleteZone;->mDragLayer:Lorg/zeam/DragLayer;

    iget-object v4, p0, Lorg/zeam/DeleteZone;->mRegion:Landroid/graphics/RectF;

    invoke-virtual {v3, v4}, Lorg/zeam/DragLayer;->setDeleteRegion(Landroid/graphics/RectF;)V

    .line 201
    iget-object v3, p0, Lorg/zeam/DeleteZone;->mTransition:Landroid/graphics/drawable/TransitionDrawable;

    invoke-virtual {v3}, Landroid/graphics/drawable/TransitionDrawable;->resetTransition()V

    .line 202
    iget-object v3, p0, Lorg/zeam/DeleteZone;->mInAnimation:Landroid/view/animation/AnimationSet;

    invoke-virtual {p0, v3}, Lorg/zeam/DeleteZone;->startAnimation(Landroid/view/animation/Animation;)V

    .line 203
    iget-object v3, p0, Lorg/zeam/DeleteZone;->mHandle:Landroid/view/View;

    iget-object v4, p0, Lorg/zeam/DeleteZone;->mHandleOutAnimation:Landroid/view/animation/Animation;

    invoke-virtual {v3, v4}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V

    .line 204
    invoke-virtual {p0, v9}, Lorg/zeam/DeleteZone;->setVisibility(I)V

    .line 207
    instance-of v3, v1, Lorg/zeam/ApplicationItemInfo;

    if-eqz v3, :cond_0

    .line 208
    check-cast v1, Lorg/zeam/ApplicationItemInfo;

    .end local v1           #item:Lorg/zeam/ItemInfo;
    iput-object v1, p0, Lorg/zeam/DeleteZone;->mUninstallApplicationItemInfo:Lorg/zeam/ApplicationItemInfo;

    .line 211
    .end local v2           #location:[I
    :cond_0
    return-void

    .line 191
    .restart local v1       #item:Lorg/zeam/ItemInfo;
    .restart local v2       #location:[I
    :cond_1
    iget-object v3, p0, Lorg/zeam/DeleteZone;->mRegion:Landroid/graphics/RectF;

    aget v4, v2, v9

    iget v5, p0, Lorg/zeam/DeleteZone;->mCustomPadding:I

    add-int/2addr v4, v5

    int-to-float v4, v4

    aget v5, v2, v8

    int-to-float v5, v5

    aget v6, v2, v9

    invoke-virtual {p0}, Lorg/zeam/DeleteZone;->getRight()I

    move-result v7

    add-int/2addr v6, v7

    invoke-virtual {p0}, Lorg/zeam/DeleteZone;->getLeft()I

    move-result v7

    sub-int/2addr v6, v7

    .line 192
    iget v7, p0, Lorg/zeam/DeleteZone;->mCustomPadding:I

    add-int/2addr v6, v7

    int-to-float v6, v6

    aget v7, v2, v8

    invoke-virtual {p0}, Lorg/zeam/DeleteZone;->getBottom()I

    move-result v8

    add-int/2addr v7, v8

    invoke-virtual {p0}, Lorg/zeam/DeleteZone;->getTop()I

    move-result v8

    sub-int/2addr v7, v8

    int-to-float v7, v7

    .line 191
    invoke-virtual {v3, v4, v5, v6, v7}, Landroid/graphics/RectF;->set(FFFF)V

    goto :goto_0

    .line 196
    :cond_2
    iget-object v3, p0, Lorg/zeam/DeleteZone;->mRegion:Landroid/graphics/RectF;

    aget v4, v2, v9

    int-to-float v4, v4

    aget v5, v2, v8

    int-to-float v5, v5

    aget v6, v2, v9

    .line 197
    invoke-virtual {p0}, Lorg/zeam/DeleteZone;->getRight()I

    move-result v7

    add-int/2addr v6, v7

    invoke-virtual {p0}, Lorg/zeam/DeleteZone;->getLeft()I

    move-result v7

    sub-int/2addr v6, v7

    int-to-float v6, v6

    aget v7, v2, v8

    invoke-virtual {p0}, Lorg/zeam/DeleteZone;->getBottom()I

    move-result v8

    add-int/2addr v7, v8

    invoke-virtual {p0}, Lorg/zeam/DeleteZone;->getTop()I

    move-result v8

    sub-int/2addr v7, v8

    int-to-float v7, v7

    .line 196
    invoke-virtual {v3, v4, v5, v6, v7}, Landroid/graphics/RectF;->set(FFFF)V

    goto :goto_1
.end method

.method public onDrop(Lorg/zeam/DragSource;IIIILjava/lang/Object;)V
    .locals 11
    .parameter "source"
    .parameter "x"
    .parameter "y"
    .parameter "xOffset"
    .parameter "yOffset"
    .parameter "dragInfo"

    .prologue
    .line 104
    move-object/from16 v0, p6

    check-cast v0, Lorg/zeam/ItemInfo;

    move-object v2, v0

    .line 105
    .local v2, item:Lorg/zeam/ItemInfo;
    iget-wide v7, v2, Lorg/zeam/ItemInfo;->container:J

    const-wide/16 v9, -0x1

    cmp-long v7, v7, v9

    if-nez v7, :cond_0

    .line 140
    :goto_0
    return-void

    .line 109
    :cond_0
    invoke-static {}, Lorg/zeam/Launcher;->getModel()Lorg/zeam/LauncherModel;

    move-result-object v4

    .line 110
    .local v4, model:Lorg/zeam/LauncherModel;
    iget-wide v7, v2, Lorg/zeam/ItemInfo;->container:J

    const-wide/16 v9, -0x64

    cmp-long v7, v7, v9

    if-nez v7, :cond_4

    .line 112
    instance-of v7, v2, Lorg/zeam/LauncherAppWidgetInfo;

    if-eqz v7, :cond_3

    .line 113
    move-object v0, v2

    check-cast v0, Lorg/zeam/LauncherAppWidgetInfo;

    move-object v3, v0

    invoke-virtual {v4, v3}, Lorg/zeam/LauncherModel;->removeDesktopAppWidget(Lorg/zeam/LauncherAppWidgetInfo;)V

    .line 125
    :cond_1
    :goto_1
    instance-of v7, v2, Lorg/zeam/UserFolderInfo;

    if-eqz v7, :cond_5

    .line 127
    move-object v0, v2

    check-cast v0, Lorg/zeam/UserFolderInfo;

    move-object v6, v0

    .line 128
    .local v6, userFolderInfo:Lorg/zeam/UserFolderInfo;
    iget-object v7, p0, Lorg/zeam/DeleteZone;->mLauncher:Lorg/zeam/Launcher;

    invoke-static {v7, v6}, Lorg/zeam/LauncherModel;->deleteUserFolderContentsFromDatabase(Landroid/content/Context;Lorg/zeam/UserFolderInfo;)V

    .line 129
    invoke-virtual {v4, v6}, Lorg/zeam/LauncherModel;->removeUserFolder(Lorg/zeam/UserFolderInfo;)V

    .line 139
    .end local v6           #userFolderInfo:Lorg/zeam/UserFolderInfo;
    :cond_2
    :goto_2
    iget-object v7, p0, Lorg/zeam/DeleteZone;->mLauncher:Lorg/zeam/Launcher;

    invoke-static {v7, v2}, Lorg/zeam/LauncherModel;->deleteItemFromDatabase(Landroid/content/Context;Lorg/zeam/ItemInfo;)V

    goto :goto_0

    .line 115
    :cond_3
    invoke-virtual {v4, v2}, Lorg/zeam/LauncherModel;->removeDesktopItem(Lorg/zeam/ItemInfo;)V

    goto :goto_1

    .line 119
    :cond_4
    instance-of v7, p1, Lorg/zeam/UserFolder;

    if-eqz v7, :cond_1

    .line 120
    move-object v0, p1

    check-cast v0, Lorg/zeam/UserFolder;

    move-object v5, v0

    .line 121
    .local v5, userFolder:Lorg/zeam/UserFolder;
    invoke-virtual {v5}, Lorg/zeam/UserFolder;->getInfo()Lorg/zeam/FolderInfo;

    move-result-object v6

    check-cast v6, Lorg/zeam/UserFolderInfo;

    .line 122
    .restart local v6       #userFolderInfo:Lorg/zeam/UserFolderInfo;
    invoke-virtual {v4, v6, v2}, Lorg/zeam/LauncherModel;->removeUserFolderItem(Lorg/zeam/UserFolderInfo;Lorg/zeam/ItemInfo;)V

    goto :goto_1

    .line 131
    .end local v5           #userFolder:Lorg/zeam/UserFolder;
    .end local v6           #userFolderInfo:Lorg/zeam/UserFolderInfo;
    :cond_5
    instance-of v7, v2, Lorg/zeam/LauncherAppWidgetInfo;

    if-eqz v7, :cond_2

    .line 133
    move-object v0, v2

    check-cast v0, Lorg/zeam/LauncherAppWidgetInfo;

    move-object v3, v0

    .line 134
    .local v3, launcherAppWidgetInfo:Lorg/zeam/LauncherAppWidgetInfo;
    iget-object v7, p0, Lorg/zeam/DeleteZone;->mLauncher:Lorg/zeam/Launcher;

    invoke-virtual {v7}, Lorg/zeam/Launcher;->getAppWidgetHost()Lorg/zeam/LauncherAppWidgetHost;

    move-result-object v1

    .line 135
    .local v1, appWidgetHost:Lorg/zeam/LauncherAppWidgetHost;
    if-eqz v1, :cond_2

    .line 136
    iget v7, v3, Lorg/zeam/LauncherAppWidgetInfo;->appWidgetId:I

    invoke-virtual {v1, v7}, Lorg/zeam/LauncherAppWidgetHost;->deleteAppWidgetId(I)V

    goto :goto_2
.end method

.method public setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
    .locals 0
    .parameter "d"

    .prologue
    .line 362
    invoke-super {p0, p1}, Landroid/widget/ImageView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 363
    check-cast p1, Landroid/graphics/drawable/TransitionDrawable;

    .end local p1
    iput-object p1, p0, Lorg/zeam/DeleteZone;->mTransition:Landroid/graphics/drawable/TransitionDrawable;

    .line 364
    return-void
.end method

.method setDragController(Lorg/zeam/DragLayer;)V
    .locals 0
    .parameter "dragLayer"

    .prologue
    .line 299
    iput-object p1, p0, Lorg/zeam/DeleteZone;->mDragLayer:Lorg/zeam/DragLayer;

    .line 300
    return-void
.end method

.method setHandle(Landroid/view/View;)V
    .locals 0
    .parameter "view"

    .prologue
    .line 303
    iput-object p1, p0, Lorg/zeam/DeleteZone;->mHandle:Landroid/view/View;

    .line 304
    return-void
.end method

.method setLauncher(Lorg/zeam/Launcher;)V
    .locals 0
    .parameter "launcher"

    .prologue
    .line 295
    iput-object p1, p0, Lorg/zeam/DeleteZone;->mLauncher:Lorg/zeam/Launcher;

    .line 296
    return-void
.end method
